﻿import request from '/@/utils/request';
enum Api {
	AddCaiJiPhotos = '/api/caiJiPhotos/add',
	DeleteCaiJiPhotos = '/api/caiJiPhotos/delete',
	UpdateCaiJiPhotos = '/api/caiJiPhotos/update',
	PageCaiJiPhotos = '/api/caiJiPhotos/page',
	DetailCaiJiPhotos = '/api/caiJiPhotos/detail',
	GetEmployeeEmployeeIdDropdown = '/api/caiJiPhotos/EmployeeEmployeeIdDropdown',
}

// 增加采集照片
export const addCaiJiPhotos = (params?: any) =>
	request({
		url: Api.AddCaiJiPhotos,
		method: 'post',
		data: params,
	});

// 增加采集照片
export const addCaiJiPhotosbatch = (params?: any) =>
	request({
		url: '/api/caiJiPhotos/adds',
		method: 'post',
		data: params,
	});

// 删除采集照片
export const deleteCaiJiPhotos = (params?: any) =>
	request({
		url: Api.DeleteCaiJiPhotos,
		method: 'post',
		data: params,
	});

// 编辑采集照片
export const updateCaiJiPhotos = (params?: any) =>
	request({
		url: Api.UpdateCaiJiPhotos,
		method: 'post',
		data: params,
	});

// 分页查询采集照片
export const pageCaiJiPhotos = (params?: any) =>
	request({
		url: Api.PageCaiJiPhotos,
		method: 'post',
		data: params,
	});

// 详情采集照片
export const detailCaiJiPhotos = (id: any) =>
	request({
		url: Api.DetailCaiJiPhotos,
		method: 'get',
		data: { id },
	});

export const getEmployeeEmployeeIdDropdown = () =>
	request({
		url: Api.GetEmployeeEmployeeIdDropdown,
		method: 'get',
	});
